import { createPinia } from "pinia";
import { App } from "vue";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const store = createPinia();
// 数据持久化
store.use(piniaPluginPersistedstate)

export function setupStore(app: App<Element>) {
  app.use(store);
}

export { store };
